<template>
  <div>
    <p>绑定的值(porps):{{ mVal }}</p>
    <button @click="editmValPorps">修改props的值</button>
  </div>
</template>

<script setup lang="ts">
defineProps(['mVal'])

const emit = defineEmits(['update:mVal'])

const editmValPorps = () => {
  emit('update:mVal', 222)
}
</script>

<style></style>
